import Fetch  from "../utils/fetch"
import request  from "../utils/request"


// 统一接口文件配置

// 首页轮播图接口    axios实现

// export  const   banner =  () => Fetch.get("/banner")
export  const   banner =  () => request({
    url:"/api/banner",
    headers:{
        DeviceType: "H5"
    }
})

// 首页接口
// export  const   cartList =  () => Fetch.get("/recommend/appIndex")
export  const   cartList =  () => request({
   url: "/api/recommend/appIndex",

})
    

export const detailsList = (id) => request({
    url: `/api/teacher/${id}?`,

})
    
export const courceDetailList = (id) => request({
    url: `/api/courseInfo/basis_id=`+id,
})



export const courseBasis = (data) => request({
    url: `/api/courseBasis`,

    params:data
})


export const sendCode = (data) => request({
    url: `/api/smsCode`,
    method: 'post',
    params: data
})


export const login = (data) => request({
    url: `/api/login`,
    method: 'post',
    params: data
})



export const selectList = (data) => request({
    url: `/api/wap/classify`,
    method: 'get',
    params: data
})

    
export const quesBank = (id) => request({
    url: `/api/wap/quesBank/${id}`,
    method: 'get',
})

    
export const search = (id) => request({
    url: `/api/wap/search/bank${id}?`,
    method: 'get',
})

export const sendPassword = (data) => request({
    url: `/api/password`,
    method: 'post',
    params:data
})

export const getInfo = (data) => request({
    url: `/api/getUCenterInfo`,
    method: 'get',
    params: data
})